﻿/* Genel Sayfa Stilleri */
html, body {
    width: 100%; /* Tam genişlik */
    height: 100%; /* Tam yükseklik */
    margin: 0;
    padding: 0;
    zoom: 90%;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to right, #006400, #32CD32);
    /* ORTALAMA KURALI */
    display: flex;
    justify-content: center; /* Yatayda ortala */
    align-items: center; /* Dikeyde ortala */

    overflow: hidden;
}

/* Login Konteyneri */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    /*animation: slideIn 1.5s ease-out;*/ /* Giriş animasyonu */
}

/* Login Box */
.login-box {
    background-color: white; /* Beyaz zemin şeffaflıkla */
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Yumuşak gölge efekti */
    width: 100%;
    max-width: 400px;
    text-align: center;
    /*animation: fadeIn 1s ease-in;*/ /* Login kutusu animasyonu */
}

h2 {
    margin-bottom: 20px;
    font-size: 30px;
    color: #4CAF50;
    font-weight: bold;
}

.login-description {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

/* Logo ve Başlık Düzeni */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    width: 250px; /* Logo genişliği */
    height: auto; /* Logo yüksekliği */
}

/* Input Alanları */
.input-field {
    width: 100%;
    padding: 15px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

    /* Odaklanma Animasyonu */
    .input-field:focus {
        border-color: #32CD32; /* Yeşil odak rengi */
        background-color: #e0f7e0;
        outline: none;
        transform: scale(1.02);
    }

/* Buton */
.btn-login {
    width: 100%;
    padding: 15px;
    background-color: #32CD32;
    margin: 15px 0;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    /* Buton Hover Efekti */
    .btn-login:hover {
        background-color: #228B22;
        transform: translateY(-5px);
    }

/* Mesaj */
.message {
    color: red;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Footer - Alt Bilgi */
.footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5); /* Yarı şeffaf arka plan */
    padding: 10px 0;
}

    .footer p {
        margin: 5px 0;
    }

    .footer strong {
        color: #32CD32; /* Yeşil vurgulama */
    }

/* Mobil Uyumluluk */
@media screen and (max-width: 768px) {
    .login-box {
        padding: 30px;
        margin: 20px;
        max-width: 80%;
    }

    h2 {
        font-size: 24px;
    }

    .input-field, .btn-login {
        font-size: 14px;
    }

    /* Footer stilini mobilde uyumlu hale getirdik */
    .footer {
        font-size: 12px;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

.register-link {
    font-size: 14px;
    color: #27ae60; /* Kayıt ol metni yeşil olacak */
    text-decoration: none; /* Alt çizgi kaldırıldı */
    display: inline-block;
    margin-top: 10px;
}

    .register-link:hover {
        color: #219150; /* Hover (üzerine gelince) rengini değiştirebilirsiniz */
        text-decoration: underline; /* Üzerine gelince alt çizgi eklenebilir */
    }


.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #444;
    user-select: none;
}

    .remember-me input[type="checkbox"] {
        -webkit-appearance: none;
        appearance: none;
        background-color: #fff;
        margin: 0 8px 0 0;
        font: inherit;
        color: #4CAF50;
        width: 18px;
        height: 18px;
        border: 2px solid #ccc;
        border-radius: 4px;
        display: grid;
        place-content: center;
        transition: all 0.2s ease-in-out;
    }

        .remember-me input[type="checkbox"]::before {
            content: "";
            width: 10px;
            height: 10px;
            transform: scale(0);
            transition: 120ms transform ease-in-out;
            box-shadow: inset 1em 1em #4CAF50;
            transform-origin: center;
        }

        .remember-me input[type="checkbox"]:checked::before {
            transform: scale(1);
        }

.forgot-link {
    background: none;
    border: none;
    color: #4CAF50;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

    .forgot-link:hover {
        text-decoration: underline;
        color: #388E3C;
    }

/* Tüm ekranı karartan overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none !important; /* ilk başta kapalı */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


/* Ortadaki loading kutusu */
.loading-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

    /* GIF boyutunu burada belirleyebilirsin */
    .loading-content img {
        width: 40px; /* isteğe göre değiştir */
        height: 40px;
    }

.info-box {
    margin-top: 30px;
    padding: 15px 20px;
    background: #f8f9fa; /* açık gri kutu */
    border: 1px solid #ddd;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    color: #444;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto; /* ortalar */
}

    .info-box p {
        margin: 4px 0;
    }

    .info-box strong {
        color: #2c7a7b; /* versiyon için hafif vurgu */
    }

.pwd-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.pwd-input {
    width: 100%;
    padding-right: 40px; /* göz butonu için boşluk */
}

.pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    opacity: 0.6;
    font-size: 24px;
}

    .pwd-toggle:hover {
        opacity: 0.6;
    }







